package com.paperobot.dao;

import java.util.List;
import java.util.Map;

import com.paperobot.model.Paper;

public interface PaperDao {
	
	Long addPaper(Paper paper) throws Exception;	
	int updatePaper(Paper paper) throws Exception;
	int updatePaperClickNum(Long paperId) throws Exception;
	int deletePaper(Long paperId) throws Exception;
	List<Paper> getPaperList(Map<String, Object> map) throws Exception;
	List<Paper> getHotPaperList(Map<String, Object> map) throws Exception;	
	List<Paper> getRecommendPaperList(Map<String, Object> map) throws Exception;
	Paper getPaper(Long paperId) throws Exception;
	List<Paper> findPaperList(String title) throws Exception;
}
